import 'package:finance_app/src/widgets/button/normal_down_button.dart';
import 'package:finance_app/src/widgets/form/form_edit_status_inherited_widget.dart';
import 'package:flutter/material.dart';

class DownButtonForm extends StatelessWidget {
  final String title;
  final VoidCallback onTap;
  final EdgeInsets padding;
  const DownButtonForm({Key key, this.title, this.onTap, this.padding})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return FormStatusWidget(
      builder: (enable) {
        return NormalDownButton(
          title: title??'',
          padding: padding,
          onTap: enable ? onTap : null,
        );
      },
    );
  }
}
